home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
emulator
/
bsvc-1.000
/
bsvc-1
/
bsvc-1.0.4
/
samples
/
Motorola68000
/
example.LIS
< prev
next >
Wrap
File List
|
1995-07-26
|
912b
|
15 lines
00002000 1 ORG $2000 Start at location 2000 Hex
00002000 2
00002000 4279 00002018 3 START CLR.W SUM Clear variable SUM
00002006 3039 0000201A 4 MOVE.W COUNT,D0 Load COUNT value
0000200C D179 00002018 5 LOOP ADD.W D0,SUM ADD D0 to SUM
00002012 5340 6 SUB.W #1,D0 Decrement counter
00002014 66F6 7 BNE LOOP Loop if counter not zero
00002016 4848 8 BREAK Tell the simulator to BREAK if we're running
00002018 9
00002018 10 SUM DS.W 1 Reserve one word for SUM
0000201A 0019 11 COUNT DC.W 25 Initial value for COUNT
No errors detected
No warnings generated